package threads;

import model.College;
import model.Teacher;
import model.Users;

public class LoadingDataCollege implements Runnable {

	private Thread t;

	@Override
	public void run() {

		while (t == Thread.currentThread()) {
			
			System.out.println("start loading college");
			College.getInstance();
			System.out.println("end loading college");
			
		}

	}

//	public void start() {
//		if (t == null) {
//			t = new Thread(this);
//			t.run();
//		}
//	}

	public void stop() {
		if (t != null)
			t = null;
	}

}
